package model
{
	import view.activity.Activity;
	import view.adminUser.AdminUser;
	import view.audit.Audit;
	import view.audit.User;
	import view.cms.CMSSite;
	import view.game.GameBasic;
	
 	[Bindable]
	public class ModelLocator 
	{
		// view accessors
		public var gameBasic:GameBasic;
		public var cmsSite:CMSSite;
		public var audit:Audit;
		public var user:User;	
		public var activity:Activity;
		public var adminUser:AdminUser;	
		public var lock:Boolean;
		
		public var adminUserVO:AdminUserVO;
		
		public var domain:String = 'http://www1.aipai.com';
		
		// models 
		private static var modelLocator : ModelLocator;
		
		public static function getInstance() : ModelLocator
		{
			if ( modelLocator == null )
			{
				modelLocator = new ModelLocator();
				modelLocator.init();
			}	
			
			return modelLocator;
	    }
			   
	    public function ModelLocator()
	    {
	    }
	    
	    protected function init():void
	    {
	    	this.lock = true;
	    }
		
	}	
}

